package com.flyqiu.common.tools;

import java.util.Objects;

@FunctionalInterface
public interface MapConsumer<K, V> {

    void accept(K k, V v);

    default MapConsumer<K, V> andThen(MapConsumer<? super K, ? super V> after) {
        Objects.requireNonNull(after);
        return (K k, V v) -> {
            accept(k, v);
            after.accept(k, v);
        };
    }
}
